home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6972 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: sage.cgd.ucar.edu!jadams
  2. From: jadams@sage.cgd.ucar.edu (James Adams)
  3. Newsgroups: comp.lang.c++
  4. Subject: How to do file I/O with <iostream.h>
  5. Date: 21 Feb 1996 01:37:33 GMT
  6. Organization: National Center for Atmospheric Research
  7. Distribution: world
  8. Message-ID: <4gdt0t$3oj@ncar.ucar.edu>
  9. Reply-To: jadams@sage.cgd.ucar.edu
  10. NNTP-Posting-Host: sage.cgd.ucar.edu
  11.  
  12. Hello,
  13.  
  14.     I can't find any info on how to do file I/O (reads, writes, fopens,
  15. etc) with <iostream.h>.  I am curious as to how I would read a certain number
  16. of bytes from an open file, how to write a certain number of bytes to an open
  17. file, etc.  Basically I need an explanation of the ofstream and ifstream member
  18. functions.  Please let me know if you know of a good reference for this
  19. (especially an online source).
  20.  
  21.     Thanks in advance for any suggestions !
  22.  
  23.  
  24. -James
  25. -- 
  26. ---------------------------------------------------------------------------
  27. James Adams                               Email: jadams@ucar.edu
  28. National Center for Atmospheric Research  Phone: (303) 497-1356
  29. Boulder, Colorado                         Fax:   (303) 497-1348
  30.  
  31.     WWW:  http://www.cgd.ucar.edu/ccr/jadams/home.html
  32.